STEP 4: Let's start by setting up the functions for our math machine program.

  • Click LOGIC, then and drop Define Function at the top of your program.
  • Do NOT delete pass!
  • Repeat these steps three more times so that you have 4 functions, each with a pass line inside.

pass is a placeholder that does nothing! It lets us define empty functions without causing a syntax error.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)